<?php $tpl->addCSS('css/review.css'); ?>
<?php $tpl->addJS('jquery/jquery.js'); ?>
<?php $tpl->headInject('<link rel="stylesheet" type="text/css" href="catalog/javascript/jquery/thickbox/thickbox.css" media="screen" />'); ?>
<?php $tpl->addJS('jquery/thickbox/thickbox-compressed.js'); ?>
<form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data">
  <h2>
    <div class="left"><?php echo $heading_title; ?></div>
    <div class="right"><?php echo $price; ?></div>
  </h2>
  <?php if ($error) { ?>
  <div class="warning"><?php echo $error; ?></div>
  <?php } ?>
  <div id="review_write">
    <div class="a"><a href="<?php echo $popup; ?>" title="<?php echo $heading_title; ?>" class="thickbox"><img src="<?php echo $thumb; ?>" title="<?php echo $product; ?>" alt="<?php echo $product; ?>" /></a><br />
      <?php echo $text_enlarge; ?></div>
    <div class="b"><b><?php echo $text_author; ?></b> <?php echo $author; ?><br />
      <br />
      <b><?php echo $entry_review; ?></b></div>
    <div id="c">
      <textarea name="text" cols="67" rows="8"><?php echo $text; ?></textarea>
      <div class="d"><?php echo $text_note; ?></div>
      <div class="e"><b><?php echo $entry_rating; ?></b>&nbsp;<span><?php echo $entry_bad; ?></span>&nbsp;
        <?php if ($rating == 1) { ?>
        <input type="radio" name="rating" value="1" checked="checked" />
        <?php } else { ?>
        <input type="radio" name="rating" value="1" />
        <?php } ?>
        &nbsp;
        <?php if ($rating == 2) { ?>
        <input type="radio" name="rating" value="2" checked="checked" />
        <?php } else { ?>
        <input type="radio" name="rating" value="2" />
        <?php } ?>
        &nbsp;
        <?php if ($rating == 3) { ?>
        <input type="radio" name="rating" value="3" checked="checked" />
        <?php } else { ?>
        <input type="radio" name="rating" value="3" />
        <?php } ?>
        &nbsp;
        <?php if ($rating == 4) { ?>
        <input type="radio" name="rating" value="4" checked="checked" />
        <?php } else { ?>
        <input type="radio" name="rating" value="4" />
        <?php } ?>
        &nbsp;
        <?php if ($rating == 5) { ?>
        <input type="radio" name="rating" value="5" checked="checked" />
        <?php } else { ?>
        <input type="radio" name="rating" value="5" />
        <?php } ?>
        &nbsp; <span><?php echo $entry_good; ?></span></div>
    </div>
  </div>
  <div class="buttons">
    <table>
      <tr>
        <td align="left"><input class="button_back" type="button" value="<?php echo $button_back; ?>" onclick="location='<?php echo $back; ?>'" /></td>
        <td align="right"><input class="button_continue" type="submit" value="<?php echo $button_continue; ?>" /></td>
      </tr>
    </table>
  </div>
</form>
